package com.hs.carrental.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hs.carrental.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hs.carrental.vo.order.OrderPageVo;
import com.hs.carrental.vo.order.OrderStatVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lyy
 * @since 2021-03-17
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    IPage<OrderPageVo> getPage(Page page, @Param("orderCode") String orderCode, @Param("carNumber")String carNumber, @Param("storeId")Integer storeId,@Param("customerAccount")String customerAccount);

    List<OrderStatVo> statOrderByStore(@Param("storeId")Integer storeId, @Param("year") String year);
}
